
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
//引入elementUI-PLUS
import ElementPlus from 'element-plus'
//引入elementUI的css
import 'element-plus/dist/index.css'
//引入中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import router from "./router"; //添加router

const app = createApp(App)
app.use(router).use(ElementPlus, {
    locale: zhCn, size: "small"
}).mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


